Skip to content

[コンソールの出力のスタイル付け]へのリンクを修正 #27429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/ja/web/api/console/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ My first car was a Dodge Charger. The object is: {str:"Some text", id:5}
- `%f`
- : 浮動小数点数値を出力します。
- `%c`
- : 以下のテキストすべてに CSS スタイルルールを適用します。[コンソール出力のスタイル設定](#styling_console_output)を参照してください。
- : 以下のテキストすべてに CSS スタイルルールを適用します。[コンソール出力のスタイル設定](#コンソールの出力のスタイル付け)を参照してください。

ブラウザーによっては追加の書式を指定します。例えば、Safari と Firefox は C スタイルの精度書式 `%.<精度>f` に対応しています。例えば、`console.log("Foo %.2f", 1.1)` は小数点以下 2 桁の数値を出力し、`Foo 1.10` となります。`console.log("Foo %.2d", 1.1)` は有効数字 2 桁に先頭の 0 を加えた数値を出力し、 `Foo 01` となります。

Expand Down